<!DOCTYPE html>

<html>
    <head>
        <meta charset="UTF-8">
        <title>打开新窗口</title>
    </head>
    <body>
        <button>打开新窗口</button>
        <script>
            (function(){
                var btn = document.querySelector('button');
                btn.addEventListener('click', function(){
                    var features = 'menubar=yes,status=yes,location=yes,left=200,top=100,height=300,width=400';
                    // window.open(url, name, features)
                    open('inner.html', '', features);
                },false);
            })();
        </script>
    </body>
</html>